package com.hx.voice.recognition.gateway.fallback;


import com.hx.voice.recognition.api.vo.authority.PermissionInfo;
import com.hx.voice.recognition.gateway.feign.IUserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @descripe：feign调用异常实现类
 * @company：南京华讯方舟通讯设备有限公司
 * @author：zhoujinbing
 * @time：2019/6/12 9:13
 * @version：V1.0
 */
@Service
@Slf4j
public class UserServiceFallback implements IUserService {
    @Override
    public List<PermissionInfo> getPermissionByUserName(String username) {
        log.error("调用{}异常{}","getPermissionByUserName",username);
        return null;
    }

    @Override
    public List<PermissionInfo> getAllPermissionInfo() {
        log.error("调用{}异常","getAllPermissionInfo");
        return null;
    }
}